on

public void on(ConfirmCallback.Params params, ConfirmCallback.Action tell)

Invoked when the callback needs a response for the given callback parameters. The response can be provided asynchronously from a different thread or before the method returns. The response can be provided only once.

Parameters

params

the object that represents the callback parameters

tell

the object that can be used to provide the callback response. One of its methods must be invoked to provide the response. Once the response has been provided, any call to the object methods will result in the IllegalStateException